home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
rexx
/
smacros.lha
/
FWMacros
/
Create_Memorandum.arexx
< prev
next >
Wrap
Text File
|
1994-12-17
|
4KB
|
116 lines
/* Create Memorandum
A Macro by Steven. R. Giovenella, 5823 Dutchess Dr., Colorado Springs, CO 80918.
© Copyright 1994 Steven. R. Giovenella, All rights reserved.
This macro is my gift to the Amiga community. It may be given away free to
anyone, but it may NOT be sold in any way, shape, or form, not even for the cost of
reproduction, downloading, shipping, or handling, without express written
permission from the author listed above. Any person or company who violates the
content of the previous sentence, agrees to pay Steven R. Giovenella $1,000 (US) for
each copy of this macro sold. This macro may NOT be added to any disk which is to
be sold for any price or fee, to include shipping and handling. The ONLY way this
macro may be distributed is on a disk which is given away 100% free of all charges,
or on via telecommunications networks which do not charge any additional fee as a
result of a user downloading this particular macro. This macro may only be
reproduced in its entirety, including all comment lines and code. The individual
user may alter this macro for personal use, but may not then distribute the macro
in any modified form. If you wish, feel free to send me some cash, a Christmas card,
some other piece of software, or absolutely nothing as a gift for creating this macro.
The author of this software is not responsible for any data loss or damage to
computer equipment as a result, direct or indirect, of the use of this macro. */
Options Results
/* Warning */
Showmessage 2 0 '" ** WARNING **" " This Macro will
alter the current document." "Unless the document is empty, save before proceed
ing." " Proceed " " Save now " " Quit "'
IF Result = 2 THEN SaveAs
IF Result = 3 THEN Exit
/* Initialize */
Leftoffset = 4.5
toppage = 1.75
/* Setup Page */
PageSetup PAGETYPE USLetter ORIENT Tall
SectionSetup TOP .5 BOTTOM 0 INSIDE 1 OUTSIDE 1 HEADER 1.25 FOOTER 1
/* Enter Data */
EnterSenders:
ShowMessage 1 0 '"Creating Memorandum..." " " " How many senders?" " One "
"Two " " More "'
IF Result = 3 THEN RequestText '"Memo" "Enter number of senders..." "3"'
IF Result < 1 THEN CALL EnterSenders
senders = Result
DO i = 1 to Result
RequestText '"Memo" "Name of Sender # 'i'" ""'
sender.i = Result
End
EnterRecipients:
ShowMessage 1 0 '"Creating Memorandum..." " " " How many recipients?" " One "
"Two " " More "'
IF Result = 3 THEN RequestText '"Memo" "Enter number of recipients..." "3"'
IF Result < 1 THEN CALL EnterRecipients
recipients = Result
DO i = 1 to Result
RequestText '"Memo" "Name of Recipient # 'i'" ""'
recipient.i = Result
End
RequestText '"Memo" "Subject of Memorandum..." ""'
Subject = Result
RequestText '"Memo" "Typists initials..." ""'
Typist = Result
RequestText '"Memo" "Enclosed... (delete text if none)" "ENC: "'
Enc = Result
RequestText '"Memo" "Carbon copy... (delete text if none)" "cc: "'
cc = Result
/* Type Data */
MoveToLine 1 0
DO i = 1 to MAX( recipients , senders )
SetTab .375 Left
SetTab (leftoffset - .375) Left
Type " "
IF recipients >= i THEN Type recipient.i
Type " "
IF senders >= i THEN Type sender.i
NewParagraph
END
NewParagraph
NewParagraph
SetTab .375 Left
SetTab (leftoffset - .375) Left
Type " "
Type Subject
Type " "
Insert Date
DO i = 1 to 3
NewParagraph
END
/* Create Textblocks */
Status FontPath
fporiginal = Result
Status FontPath 1
fp = Result || "_bold"
TextBlockTypePrefs SIZE 10 LEADING 12 FONT fp
Status LineHeight
lh = Result
DrawTextBlock 1 1 (toppage + (.5 * (lh - .125))) "TO: "
DrawTextBlock 1 leftoffset (toppage + (.5 * (lh - .125))) "FROM: "
Offset = ((MAX(senders, recipients) + 2) * lh) + toppage
DrawTextBlock 1 1 (offset + (.5 * (lh - .125))) "RE: "
DrawTextBlock 1 leftoffset (offset + (.5 * (lh - .125))) "DATE: "
TextBlockTypePrefs FONT fporiginal
DrawTextBlock 1 1 8.75 Typist
DrawTextBlock 1 1 9.25 Enc
DrawTextBlock 1 1 9.75 cc
SelectObject
Redraw
EditBody